<?php
$id=$_GET['id'];
$sql="delete from type where type_id='$id'";
mysql_query($sql);
header("location:index.php?page=add_type");
exit();
?>